<extend  name="Index/index" />
<block name="css1">
    <link rel="stylesheet" href="__ROOT__/public/mycss/account_info.css">
    <script src="__ROOT__/public/js/jquery.min.js"></script>
    <script src="__ROOT__/public/myjs/account_info.js"></script>
</block>

<block name="main">
<!-- <{:V($_SESSION['user'])}> -->
<div class="placeholder-height" style="height: 90px;"></div><div class="edit-warp" id="per_center">
    <div class="user-container">
        <div class="go-back"><a href="<{:U('user/index')}>"><i class="icon icon-go-back"></i>返回我的个人中心主页</a></div>

        <div class="nav-warp">
            <ul>
                <li class=""><a href="<{:U('User/edit')}>">修改资料</a></li>
                <li class="active"><a href="<{:U('User/account_info')}>">账户信息</a></li>
                <li class=""><a href="<{:U('User/account_binding')}>">账户绑定</a></li>
            </ul>
        </div>
                    <div class="form-warp">
    <i class="icon acnt-item-icon icon-round-ok"></i>

    <label class="control-label">&nbsp;用户名：</label>

    <div class="control-box"><{$_SESSION['user']['name']}></div>
</div>
<div class="acnt-item-box">
    <div class="acnt-item">
        <i class="icon acnt-item-icon icon-round-ok"></i>
        <label class="acnt-item-label">头&nbsp;&nbsp;&nbsp;像：</label>

        <div class="control-box under-control">
            <div class="face-box">

            <empty name="_SESSION['user']['headimg_id']">
                <!-- 图像为空时,显示默认头像 -->
                <img src="__ROOT__/public/imgs/head_img.jpg">
            <else />
                <img src="__ROOT__/Uploads/<{$_SESSION['user']['img_150']}>">
            </empty>

            </div>
        </div>


        <div id="change" class="btn-group  btn-group-box pull-right js-edit-user-info  disabled">
            <span class="btn btn-default  btn-dropdown-show js-edit-user-head">收起</span>
            <button type="button" class="btn btn-default dropdown-toggle">
                <span class="icon icon-del"></span>
            </button>
        </div>


    </div>
    <div class="clear"></div>
    <div id="shou" class="mt20">
        <ul style="display:block;">
            <li><span class="span-color-a2">仅支持JPG、PNG格式的图片文件，小于2MB</span></li>

                <li>
                <div class="row ">
                  <div class="col-sm-6 col-md-4">
                    <div class="thumbnail">

                    <!-- 上传图片演示 -->
                    <empty name="_SESSION['user']['headimg_id']">
                        <!-- 图像为空时,显示默认头像 -->
                        <img src="__ROOT__/public/imgs/head_img.jpg" style="width:200;height:200px">
                    <else />
                    <img src="__ROOT__/Uploads/<{$_SESSION['user']['img_200']}>">
                    </empty>

                      <br><br>
                      <div class="caption">
                        <form action="<{:U('User/account_info')}>" enctype="multipart/form-data" method="post">
                        <input type="file" name="head_img" /><br><br>
                        <input class="btn btn-large button" type="submit" value="提交" >
                        </form>
                      </div>
                    </div>
                  </div>
                </div>
                </li>
        </ul>
    </div>
</div>
<!-- 
<div class="acnt-item-box">
    <div class="acnt-item">
        <i class="icon acnt-item-icon icon-round-warning"></i>
        <label class="acnt-item-label">邮&nbsp;&nbsp;&nbsp;箱：</label>

        <div class="control-box under-control"></div>
        <div class="btn-group  btn-group-box pull-right js-edit-user-info ">
            <span class="btn btn-default  btn-dropdown-show js-edit-user-email">修改</span>
            <button type="button" class="btn btn-default dropdown-toggle">
                <span class="icon icon-add"></span>
            </button>
        </div>
    </div>
    <div class="acnt-item acnt-item-content">
        <ul class="under-ul" style="display: none;">
            <div class="form-warp">
                <label class="control-label">密&nbsp;&nbsp;&nbsp;码：</label>
                <input class="control-input" id="mdf_password" type="password" placeholder="密码">
            </div>
            <div class="form-warp">
                <label class="control-label">新邮箱：</label>
                <input class="control-input" id="email" placeholder="新邮箱">
            </div>
            <div class="form-warp">
                <label class="control-label">验证码：</label>
                <input class="control-input" id="captcha_email" placeholder="邮箱验证码">
                <button class="btn btn-default js-btn-captcha-email">免费获取</button>
            </div>
            <button class="btn btn-blue js-mdf-email">完成</button>
        </ul>
    </div>
</div> -->

<!-- 
<div class="acnt-item-box">
    <div class="acnt-item">
        <i class="icon acnt-item-icon icon-round-ok"></i>
        <label class="acnt-item-label">手机号：</label>

        <div class="control-box under-control">15906203474</div>
        <div class="btn-group  btn-group-box pull-right js-edit-user-info ">
            <span class="btn btn-default  btn-dropdown-show js-edit-user-mobile">修改</span>
            <button type="button" class="btn btn-default dropdown-toggle">
                <span class="icon icon-add"></span>
            </button>
        </div>
        <script type="text/javascript" src="./账户信息_files/get.php"></script>
    </div>
    <div class="acnt-item acnt-item-content">
        <ul class="under-ul" style="display: none;">
            <div class="form-warp">
                <label class="control-label">密&nbsp;&nbsp;&nbsp;码：</label>
                <input class="control-input" id="mobile-password" type="password" placeholder="密码">
            </div>
            <div class="form-warp">
                <label class="control-label">新手机号：</label>
                <input class="control-input" id="new-mobile" placeholder="新手机号">
            </div>
             -->

<!-- 
            <div class="form-warp">
                <label class="control-label">验证码：</label>
                <input class="control-input" id="captcha" placeholder="短信验证码">
                <button class="btn btn-default js-btn-captcha-phone">免费获取</button>
            </div>
            <button class="btn btn-blue js-save-mobile">完成</button>
        </ul>
    </div>
</div> -->


<div class="acnt-item-box">
    <div class="acnt-item">
        <i class="icon acnt-item-icon icon-round-ok"></i>
        <label class="acnt-item-label">密&nbsp;&nbsp;&nbsp;码：</label>

        <div class="control-box under-control">

        </div>
        <div class="btn-group  btn-group-box pull-right js-edit-user-info ">
            <span class="btn btn-default  btn-dropdown-show js-edit-user-pw">修改</span>
            <button type="button" class="btn btn-default dropdown-toggle">
                <span class="icon icon-add"></span>
            </button>
        </div>
    </div>


    <div class="acnt-item acnt-item-content">
        <ul class="under-ul" style="display: none;">
        <form action="<{:U('User/change_pwd')}>" method="post">
            <div class="form-warp">
                <label class="control-label">密&nbsp;&nbsp;&nbsp;码：</label>
                <input class="control-input" type="password" name="oldpwd" id="oldpwd" placeholder="密码">
            </div>
            <div id="old" style="margin-left:30px;color:red"></div>

            <div class="form-warp">
                <label class="control-label">新密码：</label>
                <input class="control-input" type="password" name="pwd" id="pwd" placeholder="新密码">
            </div>
                <div id="p" style="margin-left:30px;color:red"></div>

            <div class="form-warp">
                <label class="control-label">确认密码：</label>
                <input class="control-input" type="password" name="repwd" id="repwd" placeholder="确认密码">
            </div>
                <div id="re" style="margin-left:30px;color:red"></div>
            <button class="btn btn-blue" id="confirm" >完成</button>
        </ul>
        </form>
    </div>


</div>
<div class="bottom-box"></div>            </div>
</div>

<script type="text/javascript">
    var url = "<{:U('User/change_pwd')}>";

</script>
</block>
